package gui;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class MyFrame3 {
	public static void main(String[] args) {
		MyFrame mf = new MyFrame();
//		JScrollPane pane = new JScrollPane();
		JTextArea textArea = new JTextArea("lllllllllll\nll\nlllllllllllllllllllllllllllllllllllllllllllllllll");
		JScrollPane pane = new JScrollPane(textArea);
		
		mf.setSize(200, 80);				
		mf.setLocationRelativeTo(null);		
		mf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		
//		pane.add(textArea);
		
		
		mf.add(pane);
		
		
		mf.setVisible(true);	//设置窗体可见
		mf.setResizable(false);
		
	}

}
